package slxy.jiangtao.dts.core.common.bean;

import org.hibernate.criterion.Criterion;

/**
 * 表单查询条件
 * Created by JiangTao on 2016/11/25.
 */
public class FormCriteria {

    /**
     * 表单字段
     */
    private String field;

    /**
     * 字段条件
     */
    private String condition;

    /**
     * Hibernate查询条件
     */
    private Criterion criterion;

    /**
     * 条件字段值
     */
    private Object value;

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getCondition() {
        return condition;
    }

    public void setCondition(String condition) {
        this.condition = condition;
    }

    public Criterion getCriterion() {
        return criterion;
    }

    public void setCriterion(Criterion criterion) {
        this.criterion = criterion;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public FormCriteria(String field, String condition, Object value) {
        this.field = field;
        this.condition = condition;
        this.value = value;
    }

    public FormCriteria() {
    }
}
